XyyDataSeries

StockSharp.Xaml.Charting.Model.DataSeries

一个存储 Xyy 数据点的 DataSeries, 包含 X和 Y0, Y1 值 可能用作 DataSource 以及标准 XY 可转换序列类型 。

继承自: DataSeries<T, T>

实现: IXyyDataSeries<T, T>, IDataSeries<T, T>, IDataSeries, ISuspendable, IXyyDataSeries

构造函数

XyyDataSeries
public XyyDataSeries()
xyyDataSeries = XyyDataSeries()

初始化了 & ##XyyDataSeries+# 类的新实例 。

属性

DataSeriesType
public override DataSeriesType DataSeriesType { get; }
value = xyyDataSeries.DataSeriesType

获得此 & # # # #DataSeriesType # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #

HasValues
public override bool HasValues { get; }
value = xyyDataSeries.HasValues

获取数据序列是否有值( 不是空的)

Y1Values
public IList<TY> Y1Values { get; }
value = xyyDataSeries.Y1Values

获取 Y1 值

YRange
public override IRange YRange { get; }
value = xyyDataSeries.YRange

获得计算 YRange, 即IRang 包接 YMIN 和 YMax 属性

方法

Append
public void Append(IEnumerable<TX> x, IEnumerable<TY> y0, IEnumerable<TY> y1)
xyyDataSeries.Append(x, y0, y1)

附加 X 、 Y0 和 Y1 的相集到序列中, 自动触发重画

x
X 值
y0
元值( Y)
y1
Y1 值( 数值 )
Append
public void Append(TX x, TY y0, TY y1)
xyyDataSeries.Append(x, y0, y1)

将单 X, Y0, Y1 点到序列中, 自动触发重画

x
X 值
y0
值为 Y0 值
y1
Y1 值
Append
public override void Append(IEnumerable<TX> x, IEnumerable<TY>[] yValues)
xyyDataSeries.Append(x, yValues)

附加 X 列表, Y 指向序列

x
X 点列表
yValues
Y分列表( 取决于系列类型)
Append
public override void Append(TX x, TY[] yValues)
xyyDataSeries.Append(x, yValues)

附加一个 X, Y 指向序列

x
X 值
yValues
Y 值( 取决于系列类型)
ClearColumns
protected override void ClearColumns()
xyyDataSeries.ClearColumns()

当在某一类中被覆盖时, 清除数据序列中的所有列

Clone
public override IDataSeries<TX, TY> Clone()
result = xyyDataSeries.Clone()

Creates a deep copy of a DataSeries

GetYMaxAt
public override TY GetYMaxAt(int index, TY existingYMax)
result = xyyDataSeries.GetYMaxAt(index, existingYMax)

当在衍生类中被覆盖时,获得最大值(existingYMax,currentMax),其中currentMax是指定索引中的最大值

index
基础数据集的索引
existingYMax
现有上限

返回值: 新的YMax,即Min(existingYMax,currentMax).

GetYMinAt
public override TY GetYMinAt(int index, TY existingYMin)
result = xyyDataSeries.GetYMinAt(index, existingYMin)

当在衍生类中被覆盖时, 可获得 Min(%% existingYMin+%,% currentMin+%), 其中的% currentMin+%% 是指定索引中最小的

index
基础数据集的索引
existingYMin
现有最低限额

返回值: 新的YMIN,即Min(existingYMin,currentMin)), 即:

Insert
public void Insert(int index, TX x, TY y0, TY y1)
xyyDataSeries.Insert(index, x, y0, y1)

在指定的索引上插入 X, Y0, Y1 点。 自动触发重画

index
插入的索引
x
X 值
y0
值为 Y0 值
y1
Y1 值
InsertRange
public void InsertRange(int startIndex, IEnumerable<TX> x, IEnumerable<TY> y0, IEnumerable<TY> y1)
xyyDataSeries.InsertRange(startIndex, x, y0, y1)

在指定的索引上插入 X 、 Y0 和 Y1 分的集合, 自动触发重画

startIndex
插入的索引
x
X 值
y0
元值( Y)
y1
Y1 值( 数值 )
RemoveAt
public override void RemoveAt(int index)
xyyDataSeries.RemoveAt(index)

删除指定索引中的 X, Y 值

index
要删除的索引 :
RemoveRange
public override void RemoveRange(int startIndex, int count)
xyyDataSeries.RemoveRange(startIndex, count)

删除从指定的索引开始的点范围

startIndex
开始删除元素范围的索引
count
要删除的元素数量
ToHitTestInfo
public override HitTestInfo ToHitTestInfo(int index)
result = xyyDataSeries.ToHitTestInfo(index)

当在衍生类中被覆盖时, 返回包含指定索引数据点的 HitTestInfo 结构

index
The index to the DataSeries

返回值: HitTestInfo

ToPointSeries
public override IPointSeries ToPointSeries(ResamplingMode resamplingMode, IndexRange pointRange, int viewportWidth, bool isCategoryAxis, bool? dataIsDisplayedAs2D, IRange visibleXRange, IPointResamplerFactory factory, object pointSeriesArg)
result = xyyDataSeries.ToPointSeries(resamplingMode, pointRange, viewportWidth, isCategoryAxis, dataIsDisplayedAs2D, visibleXRange, factory, pointSeriesArg)

将默认的 YValues 转换为用于渲染 XY 序列的 IPointSeries

resamplingMode
The desired ResamplingMode
pointRange
父数据集中的整数索引范围
viewportWidth
视图的当前宽度
isCategoryAxis
如果真实, 使用索引来组成被重印的 X 值, 否则使用 X 值本身
dataIsDisplayedAs2D
如果数据是真实的, 那么数据会被显示为散射序列, 而不在点之间发生关系, e.g 。 而不是行序列 。
visibleXRange
重作取样时的轴 VisibleRange
factory
The IPointResamplerFactory Instance
pointSeriesArg
点序列的附加参数.

返回值: 用于制取 XY 系列的 IPointSeries 相机

Update
public void Update(TX x, TY y0, TY y1)
xyyDataSeries.Update(x, y0, y1)

更新( 覆盖) 指定的 X 值的 Y0, Y1 值。 自动触发重画

x
X 值
y0
值为 Y0 值
y1
Y1 值